﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PcArduinoControl
{
	class CommandOutputAnalog :
		Command
	{
		public byte Pin
		{
			get
			{
				return Arguments[0];
			}
		}

		public byte Value
		{
			get
			{
				unchecked
				{
					return (byte)Arguments[1];
				}
			}
		}

		internal CommandOutputAnalog(byte pin, byte value) :
			base(CommandType.OutAnl, pin, unchecked((byte)value))
		{
		}
	}
}
